.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.upload-section {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.drop-zone {
  border: 2px dashed #2196F3;
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.drop-zone:hover {
  background: #e3f2fd;
  border-color: #1976D2;
}

#fileInput {
  display: none;
}

.controls-section {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
}

.control-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.control-group label {
  min-width: 80px;
  color: #424242;
}

input[type="range"] {
  flex: 1;
  accent-color: #2196F3;
}

#compressBtn {
  background: #2196F3;
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

#compressBtn:hover {
  background: #1976D2;
}

.preview-section {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.image-box {
  border: 1px solid #eee;
  padding: 1rem;
  border-radius: 8px;
}

canvas {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.download-btn {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 1rem 2rem;
  border-radius: 5px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .image-container {
    grid-template-columns: 1fr;
  }
}